<?php
session_start();
$user = $_SESSION['username'];
	
	if(!isset($user)){ 
		die("Anda belum Login, silahkan kembali ke halaman awal anda");
	}
?>
<DOCTYPE! HTML>
<html>
<head>


 <link type="text/css" rel="stylesheet" href="css/bootstrap.css"/>
<title>Jajanan Ngalam</title>
<div class="hero-unit" style="margin-left:70px; margin-top:70px; margin-right:80px">
  <h1><font face="comic sans MS" color="green">JAJANAN NGALAM</font></h1>
  <p><font face="comic sans MS" size=4> Website Integrasi pedangang jajanan asli kota Malang </font></p>
  
</div> 
</head>
<body>
<body style="background-image:url(images/blue.jpg)" >
<div class="hero-unit" style="width:80%; height:auto; margin-left:70px;">
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="row">
				<div class="span9">	
					<div class="navbar" >
						<div class="navbar-inner" style="margin-left:20; margin-right:20">
						<a class="brand">PEMBELI</a>
							<ul class="nav">
								<li class="active"><a href="home-pembeli.php">Home</a></li>
								<li><a href="produk_pembeli.php">Produk Kami</a></li>
								<li><a href="map_pembeli.php">Lokasi Jajanan</a></li>
								<li><a href="kritik_pembeli.php">Kritik dan Saran</a></li>
							</ul>
						</div>
						<div class="container-fluid">
							<div class="well span12">
								<a><?php
									include 'fungsi.php';
									$hasil = new fungsi();
									$hasil->konek();
									$liat=$hasil->info();
									while($rows = mysql_fetch_array($liat)){
									echo '<table class="table table-bordered">
												<tr>
													<td>
														<font size=5 align="right">'.$rows['judul_artikel'].'</font>
														<p  class="span10" style="color:black" align="justify" ><font size=2>'.$rows['deskripsi'].'</font></p>
														<p align="right"><font size=2>'.$rows['tanggal'].'</font></p>
													</td>
												</tr>
											</table>';
									}
									?> 
								</a>
							</div>
						</div>	
					</div>
					
				</div>	
				<form class="well span3" method="POST" action="logout.php">
					<h4>Hai, <?php $cek=$_SESSION['username']; echo $cek; ?> !</h4>
					<button type="submit" class="btn">Keluar</button>
				</form>
			</div>
		</div>
	</div>
</div>
<script src="js/bootstrap.js"></script>
</body>
</html>